#if 0
#include <buola/scene/cnode.h>

#include <buola/gl.h>

namespace buola { namespace scene {

CNode::CNode()
    :   mFlags(FLAG_NONE)
    ,   mTranslation(0,0,0)
    ,   mScale(1,1,1)
{
}

CNode::~CNode()
{

}

void CNode::AddChild(PNode pNode)
{
    mChildren.push_back(pNode);
    pNode->mParent=this;
}

void CNode::SetPose(const mat::CVec3d &pTranslation,const mat::CQuat &pRotation,const mat::CVec3d &pScale)
{
    mTranslation=pTranslation;
    mRotation=pRotation;
    mScale=pScale;

    mFlags&=~FLAG_VALID_LOCALTRANSFORM;
}

void CNode::SetTranslation(const mat::CVec3d &pTranslation)
{
    mTranslation=pTranslation;

    mFlags&=~FLAG_VALID_LOCALTRANSFORM;
}

void CNode::SetRotation(const mat::CQuat &pRotation)
{
    mRotation=pRotation;

    mFlags&=~FLAG_VALID_LOCALTRANSFORM;
}

void CNode::SetScale(const mat::CVec3d &pScale)
{
    mScale=pScale;

    mFlags&=~FLAG_VALID_LOCALTRANSFORM;
}

void CNode::CalcLocalTransform()
{
    mLocalTransform=C3DMatrix(nTranslate,mTranslation)*C3DMatrix(nRotate,mRotation)*C3DMatrix(nScale,mScale);
    mFlags|=FLAG_VALID_LOCALTRANSFORM;
}

/*namespace scene*/ } /*namespace buola*/ }
#endif